package com.cms.service;

import java.util.List;

import com.cms.domain.Template;
import com.core.util.PropertiesConfigUtil;

public interface TemplateService {
	
	public static String TEMP_ROOT = PropertiesConfigUtil.getProperty("template.properties", "template.temp_root")==null?
			"/WEB-INF/pages/subject/template/temp/":(String) PropertiesConfigUtil.getProperty("template.properties", "template.temp_root");
	
	public static String TEMP_STATIC_ROOT = PropertiesConfigUtil.getProperty("template.properties", "template.temp_static_root")==null?
			"/template/temp/static":(String) PropertiesConfigUtil.getProperty("template.properties", "template.temp_static_root");
	
	public static String RESOURCE_ROOT = PropertiesConfigUtil.getProperty("template.properties", "template.resource_root")==null?
			"/template/temp/":(String) PropertiesConfigUtil.getProperty("template.properties", "template.resource_root");
	
	public Template getById(Long id);
	
	public Template getByKey(String key_word);

	public List<Template> getList(Long id_sbj);
	
	public List<Template> getList(Long id_sbj, int pageNum, int pageSize);
	
	public List<Template> getList(Template searchEntity);
	
	public void add(Template entity);
	
	public void delete(Template entity);
	
	public void update(Template entity);
	
	public Integer getRowCount(Long id_sbj);
	
	public String getRelativePathByKey(String key);
}
